
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">
 <div class="container-fluid am-cf">
                <div class="row">
                     <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li class="am-active">系统</li>
						  <li class="am-active">地址</li>
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
  </div>
       <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-fl"><span class="iask-icon-xitongrizhi iconfont sidebar-nav-link-logo"></span><i class="iask-icon-xitongrizhi iconfont sidebar-nav-link-logo"></i> 地址列表</div>

                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                    <div class="am-form-group tpl-table-list-select">
                                        <select data-am-selected="{btnSize: 'sm'}" onchange="window.location.href=this.value">
                                          <option value="${Domain}my/address/list"  <#if type=0>selected</#if>>全部</option> 
							              <option value="${Domain}my/address/list/1" <#if type=1>selected</#if>>国级</option>
							              <option value="${Domain}my/address/list/2" <#if type=2>selected</#if>>省级</option>
							              <option value="${Domain}my/address/list/3" <#if type=3>selected</#if>>市级</option>
										  <option value="${Domain}my/address/list/4" <#if type=4>selected</#if>>县级</option>
							            </select>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                	<#include "../common/search.ftl">
                                </div>

                                <div class="am-u-sm-12">
                                
                                
                                
                                <div class="am-scrollable-horizontal">
                                
                                    <table width="100%" class="<#include "../common/table-class.ftl">"  >
                                        <thead>
                                            <tr>
                                                <th width="80px">编号</th>
                                                <th>名称</th>
                                                <th>上级ID</th>
                                                <th>类型</th>
                                                <th>邮编 </th>
 												<th width="120px">操作 </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#list page.list as item>
                                            <tr >
                                                <td>${item.id?c}</td>
                                                <td>${item.name}</td>
                                                <td>
                                                <#if item.parent_id!=0>
                                                <a href="${Domain}my/address/show/${item.parent_id}?url=${url}">${item.parent_id}</a>
                                                </#if>
                                                </td>
                                                <td>
                                                <#switch item.type>												
												<#case 1>国级<#break>
												<#case 2>省级<#break>
												<#case 3>市级<#break>
												<#case 4>县级<#break>
												<#default>
												</#switch>
													
												</td>
                                                <td>${item.zip!}</td>
                                                <td> 
                                                <div class="tpl-table-black-operation">
                                                    	
                                                        <a href="${Domain}my/address/show/${item.id}?url=${url}">
                                                            <i class="am-icon-file-o"></i> 查看
                                                        </a>
                                                       
                                                       
                                                    </div>
                                                    </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                    </table>
                                    </div>
                                </div>
                              
                               <#include "../common/page.ftl">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
       
       
       
       
 </div>             
<#include "footer.ftl">